Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python generator script for project templates #669

Open
wants to merge 8 commits into
base: branch-24.03
Choose a base branch
from

Conversation

jjwilke
Copy link

@jjwilke jjwilke commented Apr 6, 2023

Migrates some of the project template functionality. Gives the option to generate a template using a python script instead of CMake.

@jjwilke jjwilke requested review from bryevdv and trxcllnt April 6, 2023 17:45
setup.py Outdated Show resolved Hide resolved
cmake/cpp_header_template Outdated Show resolved Hide resolved
Copy link

@trxcllnt trxcllnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments

@jjwilke
Copy link
Author

jjwilke commented Apr 10, 2023

Changes made. Thanks for the comments. PTAL.

@jjwilke jjwilke requested a review from trxcllnt April 10, 2023 21:28
@jjwilke jjwilke added the category:improvement PR introduces an improvement and will be classified as such in release notes label Apr 10, 2023
Copy link

@trxcllnt trxcllnt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but can we add create-legate-library to .gitignore?

@marcinz marcinz changed the base branch from branch-23.05 to branch-23.07 May 18, 2023 20:12
@jjwilke jjwilke force-pushed the build-template-generator branch from 27be9a8 to 1403abe Compare May 25, 2023 22:17
@jjwilke jjwilke requested review from manopapad and trxcllnt May 26, 2023 20:39
Comment on lines 5 to 13
import os
import stat
import sys
from pathlib import Path
from typing import Union

if len(sys.argv) != 2:
sys.exit("Must give a single argument with the library name")
libname = sys.argv[1]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import os
import stat
import sys
from pathlib import Path
from typing import Union
if len(sys.argv) != 2:
sys.exit("Must give a single argument with the library name")
libname = sys.argv[1]
import argparse
import os
import stat
from pathlib import Path
from typing import Union
parser = argparse.ArgumentParser()
parser.add_argument('libname')
args = parser.parse_args()
libname = args.libname

I tried doing legate-create-library -h and that didn't work out well for me.

@manopapad
Copy link
Contributor

I tried using this on an editable install (merged with latest branch-23.07), and the following files end up empty:

  • mylib/mylib.py
  • src/legate_library.cc
  • src/legate_library.h

Is this expected? Note that the legate-create-library script (see below) is placed under the top-level legate.core directory (not under _skbuild), and the contents of the files are as follows:

$CONDA_PREFIX/bin/legate-create-library
#!/Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3
# EASY-INSTALL-DEV-SCRIPT: 'legate.core==23.3.0.dev0+152.g8f811e5e','legate-create-library'
__requires__ = 'legate.core==23.3.0.dev0+152.g8f811e5e'
__import__('pkg_resources').require('legate.core==23.3.0.dev0+152.g8f811e5e')
__file__ = '/Users/mpapadakis/legate.core/legate-create-library'
with open(__file__) as f:
    exec(compile(f.read(), __file__, 'exec'))
/Users/mpapadakis/legate.core/legate-create-library
#! /usr/bin/env python

from __future__ import annotations

import argparse
import os
import stat
from pathlib import Path
from typing import Union

parser = argparse.ArgumentParser()
parser.add_argument('libname')
args = parser.parse_args()
libname = args.libname

cpp_source_template = """

"""

cpp_header_template = """

"""

python_template = """

"""


cmake_toplevel_template = """
#=============================================================================
# Copyright 2023 NVIDIA Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================

cmake_minimum_required(VERSION 3.22.1 FATAL_ERROR)

project($target VERSION 1.0 LANGUAGES C CXX)

set(CMAKE_CXX_STANDARD 17)
set(BUILD_SHARED_LIBS ON)

find_package(legate_core REQUIRED)

legate_add_cpp_subdirectory(src TARGET $target EXPORT $target-export)

legate_add_cffi(${CMAKE_CURRENT_SOURCE_DIR}/src/$target_cffi.h TARGET $target)
legate_default_python_install($target EXPORT $target-export)
"""

cmake_src_template = """
#=============================================================================
# Copyright 2023 NVIDIA Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#=============================================================================

add_library(
  $target
  legate_library.h
  legate_library.cc
)

target_include_directories($target
  PRIVATE
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
  INTERFACE
    $<INSTALL_INTERFACE:include>
)

target_link_libraries($target PRIVATE legate::core)
"""

setup_template = """
#!/usr/bin/env python3

# Copyright 2023 NVIDIA Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os
from pathlib import Path

from setuptools import find_packages
from skbuild import setup

import legate.install_info as lg_install_info

legate_dir = Path(lg_install_info.libpath).parent.as_posix()

cmake_flags = [
    f"-Dlegate_core_ROOT:STRING={legate_dir}",
]

env_cmake_args = os.environ.get("CMAKE_ARGS")
if env_cmake_args is not None:
    cmake_flags.append(env_cmake_args)
os.environ["CMAKE_ARGS"] = " ".join(cmake_flags)


setup(
    name="Legate $target",
    version="0.1",
    description="$target for Legate",
    author="NVIDIA Corporation",
    license="Apache 2.0",
    classifiers=[
        "Intended Audience :: Developers",
        "Topic :: Database",
        "Topic :: Scientific/Engineering",
        "License :: OSI Approved :: Apache Software License",
        "Programming Language :: Python",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10",
    ],
    packages=find_packages(
        where=".",
        include=["$target", "$target.*"],
    ),
    include_package_data=True,
    zip_safe=False,
)
"""

editable_script = """
legate_root=`python -c 'import legate.install_info as i; from pathlib import Path; print(Path(i.libpath).parent.resolve())'`
echo "Using Legate at $legate_root"
cmake -S . -B build -D legate_core_ROOT=$legate_root
cmake --build build
python -m pip install -e . -vv
"""

install_script = """
python -m pip install .
"""

def generate_file(libname: str, template: str, path: Union[Path,str], executable: bool = False):
  target_path = Path(libname) / Path(path)
  if not target_path.parent.is_dir():
    target_path.parent.mkdir(parents=True)

  text = template.replace("$target", libname)
  text = text.replace("@" "target" "@", libname)
  text = text.replace("@" "py_import_path" "@", libname)
  with open(target_path, "w") as f:
    f.write(text)

  if executable:
    st = os.stat(target_path)
    os.chmod(target_path, st.st_mode | stat.S_IRWXU)

cffi_template = """
/* Copyright 2023 NVIDIA Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

enum $targetOpCode {
};
"""

generate_file(libname, cpp_source_template, "src/legate_library.cc")
generate_file(libname, cpp_header_template, "src/legate_library.h")
generate_file(libname, python_template, Path(libname) / f"{libname}.py")
generate_file(libname, "", Path(libname) / "__init__.py")
generate_file(libname, setup_template, "setup.py")
generate_file(libname, editable_script, "editable-install.sh", executable=True)
generate_file(libname, install_script, "install.sh", executable=True)
generate_file(libname, cmake_toplevel_template, "CMakeLists.txt")
generate_file(libname, cmake_src_template, "src/CMakeLists.txt")
generate_file(libname, cffi_template, f"src/{libname}_cffi.h")

@jjwilke jjwilke requested a review from manopapad June 3, 2023 18:42
@manopapad
Copy link
Contributor

manopapad commented Jun 5, 2023

I tried doing a clean editable installation (after merging with branch-23.07) and it failed with:

    CMake Error at legate_core_cpp.cmake:467 (file):
      file failed to open for reading (No such file or directory):

        /Users/mpapadakis/legate.core/cmake/tmpl/cpp_source_template

It appears the templates are under legate/ now?

Full build output
~/legate.core> ~/quickstart/build.sh --debug
Did not detect a supported cluster, assuming local-node build
Command: ./install.py --verbose --editable --legion-src-dir ../legion --debug
Verbose build is  on
networks: []
cuda: False
arch: NATIVE
openmp: False
march: haswell
hdf: False
llvm: False
spy: False
build_docs: False
conduit: None
nccl_dir: None
cmake_exe: cmake
cmake_generator: Ninja
gasnet_dir: None
ucx_dir: None
cuda_dir: None
maxdim: 4
maxfields: 256
debug: True
debug_release: False
check_bounds: False
clean_first: False
extra_flags: []
editable: True
build_isolation: True
thread_count: None
verbose: True
thrust_dir: None
legion_dir: None
legion_src_dir: ../legion
legion_url: None
legion_branch: None
unknown: []
Using python lib and version: /Users/mpapadakis/opt/miniconda3/envs/legate/lib/libpython3.9.dylib, 3.9.16
legate_core_dir:  /Users/mpapadakis/legate.core
cuda_dir:  None
nccl_dir:  None
legion_dir:  None
legion_src_dir:  /Users/mpapadakis/legion
gasnet_dir:  None
ucx_dir:  None
thrust_dir:  None
install_dir:  /Users/mpapadakis/opt/miniconda3/envs/legate
Executing: " /Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 -m pip install --root / --prefix /Users/mpapadakis/opt/miniconda3/envs/legate --no-deps --no-build-isolation --editable . -vv " with  {'cwd': '/Users/mpapadakis/legate.core', 'env': {'NETWORK': 'none', 'TERM_PROGRAM': 'iTerm.app', 'SHELL': '/bin/bash', 'TERM': 'xterm-256color', 'TMPDIR': '/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/', 'CONDA_SHLVL': '1', 'TERM_PROGRAM_VERSION': '3.4.19', 'CONDA_PROMPT_MODIFIER': '', 'SDKROOT': '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk', 'TERM_SESSION_ID': 'w0t1p0:ECB70E32-337D-4EBF-AC6D-F0E06D065495', 'USER': 'mpapadakis', 'COMMAND_MODE': 'unix2003', 'CONDA_EXE': '/Users/mpapadakis/opt/miniconda3/bin/conda', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.SDhXNS9FHO/Listeners', '__CF_USER_TEXT_ENCODING': '0x1F6:0x0:0x0', 'LEGION_DIR': '../legion', '_CE_CONDA': '', 'PATH': '/Users/mpapadakis/opt/miniconda3/envs/legate/bin:/Users/mpapadakis/opt/miniconda3/condabin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/mpapadakis/bin', '__CFBundleIdentifier': 'com.googlecode.iterm2', 'CONDA_PREFIX': '/Users/mpapadakis/opt/miniconda3/envs/legate', 'PWD': '/Users/mpapadakis/legate.core', 'LANG': 'en_US.UTF-8', 'GPU_ARCH': 'NATIVE', 'ITERM_PROFILE': 'Default', 'XPC_FLAGS': '0x0', 'PLATFORM': 'other', 'SCRIPT_DIR': '/Users/mpapadakis/quickstart', 'USE_OPENMP': '0', 'XPC_SERVICE_NAME': '0', '_CE_M': '', 'USE_CUDA': '0', 'COLORFGBG': '0;15', 'HOME': '/Users/mpapadakis', 'SHLVL': '2', 'LC_TERMINAL_VERSION': '3.4.19', 'ITERM_SESSION_ID': 'w0t1p0:ECB70E32-337D-4EBF-AC6D-F0E06D065495', 'LOGNAME': 'mpapadakis', 'CONDA_PYTHON_EXE': '/Users/mpapadakis/opt/miniconda3/bin/python', 'CONDA_DEFAULT_ENV': 'legate', 'DISPLAY': '/private/tmp/com.apple.launchd.fTuo3vHXrO/org.macosforge.xquartz:0', 'LC_TERMINAL': 'iTerm2', 'SCRATCH': '/Users/mpapadakis/Sites/local', 'COLORTERM': 'truecolor', '_': './install.py', 'SETUPTOOLS_ENABLE_FEATURES': 'legacy-editable', 'CMAKE_ARGS': ' --log-level=DEBUG -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DBUILD_MARCH=haswell -DCMAKE_CUDA_ARCHITECTURES=NATIVE -DLegion_MAX_DIM=4 -DLegion_MAX_FIELDS=256 -DLegion_SPY=OFF -DLegion_BOUNDS_CHECKS=OFF -DLegion_USE_CUDA=OFF -DLegion_USE_OpenMP=OFF -DLegion_USE_LLVM=OFF -DLegion_NETWORKS= -DLegion_USE_HDF5=OFF -DLegion_USE_Python=ON -DLegion_Python_Version=3.9.16 -DLegion_REDOP_COMPLEX=ON -DLegion_REDOP_HALF=ON -DLegion_BUILD_BINDINGS=ON -DLegion_BUILD_JUPYTER=ON -DLegion_EMBED_GASNet_CONFIGURE_ARGS="--with-ibv-max-hcas=8" -DCPM_Legion_SOURCE=/Users/mpapadakis/legion', 'CMAKE_GENERATOR': 'Ninja', 'SKBUILD_BUILD_OPTIONS': '-j16 --verbose'}}
Using pip 23.1.2 from /Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/pip (python 3.9)
Non-user install due to --prefix or --target option
Created temporary directory: /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-build-tracker-3q0igvb0
Initialized build tracking at /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-build-tracker-3q0igvb0
Created build tracker: /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-build-tracker-3q0igvb0
Entered build tracker: /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-build-tracker-3q0igvb0
Created temporary directory: /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-install-q2c6qo36
Created temporary directory: /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-ephem-wheel-cache-ozzg9n_r
Obtaining file:///Users/mpapadakis/legate.core
  Added file:///Users/mpapadakis/legate.core to build tracker '/private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-build-tracker-3q0igvb0'
  Running command Checking if build backend supports build_editable
  Checking if build backend supports build_editable ... done
  Created temporary directory: /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4
  Running command Preparing metadata (pyproject.toml)
  /Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/setuptools/dist.py:519: InformationOnly: Normalizing '23.03.00.dev+157.g21051c80' to '23.3.0.dev0+157.g21051c80'
    self.metadata.version = self._normalize_version(
  running dist_info
  creating /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core.egg-info
  writing /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core.egg-info/PKG-INFO
  writing dependency_links to /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core.egg-info/dependency_links.txt
  writing entry points to /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core.egg-info/entry_points.txt
  writing requirements to /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core.egg-info/requires.txt
  writing top-level names to /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core.egg-info/top_level.txt
  writing manifest file '/private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core.egg-info/SOURCES.txt'
  reading manifest file '/private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE'
  writing manifest file '/private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core.egg-info/SOURCES.txt'
  creating '/private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-modern-metadata-_zmdg7c4/legate.core-23.3.0.dev0+157.g21051c80.dist-info'
  Preparing metadata (pyproject.toml) ... done
  Source in /Users/mpapadakis/legate.core has version 23.3.0.dev0+157.g21051c80, which satisfies requirement legate.core==23.3.0.dev0+157.g21051c80 from file:///Users/mpapadakis/legate.core
  Removed legate.core==23.3.0.dev0+157.g21051c80 from file:///Users/mpapadakis/legate.core from build tracker '/private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-build-tracker-3q0igvb0'
Created temporary directory: /private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-unpack-awczz706
Installing collected packages: legate.core
  Running setup.py develop for legate.core
    Running command python setup.py develop
    /Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/setuptools/dist.py:519: InformationOnly: Normalizing '23.03.00.dev+157.g21051c80' to '23.3.0.dev0+157.g21051c80'
      self.metadata.version = self._normalize_version(
    /Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` and ``easy_install``.
            Instead, use pypa/build, pypa/installer, pypa/build or
            other standards-based tools.

            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************

    !!
      easy_install.initialize_options(self)


    --------------------------------------------------------------------------------
    -- Trying 'Ninja' generator
    --------------------------------
    ---------------------------
    ----------------------
    -----------------
    ------------
    -------
    --
    Not searching for unused variables given on the command line.
    -- The C compiler identification is AppleClang 14.0.3.14030022
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- The CXX compiler identification is AppleClang 14.0.3.14030022
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Configuring done (2.6s)
    -- Generating done (0.0s)
    -- Build files have been written to: /Users/mpapadakis/legate.core/_cmake_test_compile/build
    --
    -------
    ------------
    -----------------
    ----------------------
    ---------------------------
    --------------------------------
    -- Trying 'Ninja' generator - success
    --------------------------------------------------------------------------------

    Configuring Project
      Working directory:
        /Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build
      Command:
        /Users/mpapadakis/opt/miniconda3/envs/legate/bin/cmake /Users/mpapadakis/legate.core -G Ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.16 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/include/python3.9 -DPYTHON_LIBRARY:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/lib/libpython3.9.dylib -DPython_EXECUTABLE:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 -DPython_ROOT_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/include/python3.9 -DPython_NumPy_INCLUDE_DIRS:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 -DPython3_ROOT_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/include/python3.9 -DPython3_NumPy_INCLUDE_DIRS:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/numpy/core/include --log-level=DEBUG -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DBUILD_MARCH=haswell -DCMAKE_CUDA_ARCHITECTURES=NATIVE -DLegion_MAX_DIM=4 -DLegion_MAX_FIELDS=256 -DLegion_SPY=OFF -DLegion_BOUNDS_CHECKS=OFF -DLegion_USE_CUDA=OFF -DLegion_USE_OpenMP=OFF -DLegion_USE_LLVM=OFF -DLegion_NETWORKS= -DLegion_USE_HDF5=OFF -DLegion_USE_Python=ON -DLegion_Python_Version=3.9.16 -DLegion_REDOP_COMPLEX=ON -DLegion_REDOP_HALF=ON -DLegion_BUILD_BINDINGS=ON -DLegion_BUILD_JUPYTER=ON '-DLegion_EMBED_GASNet_CONFIGURE_ARGS="--with-ibv-max-hcas=8"' -DCPM_Legion_SOURCE=/Users/mpapadakis/legion -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=13.0 -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64 --log-level=DEBUG -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DBUILD_MARCH=haswell -DCMAKE_CUDA_ARCHITECTURES=NATIVE -DLegion_MAX_DIM=4 -DLegion_MAX_FIELDS=256 -DLegion_SPY=OFF -DLegion_BOUNDS_CHECKS=OFF -DLegion_USE_CUDA=OFF -DLegion_USE_OpenMP=OFF -DLegion_USE_LLVM=OFF -DLegion_NETWORKS= -DLegion_USE_HDF5=OFF -DLegion_USE_Python=ON -DLegion_Python_Version=3.9.16 -DLegion_REDOP_COMPLEX=ON -DLegion_REDOP_HALF=ON -DLegion_BUILD_BINDINGS=ON -DLegion_BUILD_JUPYTER=ON -DLegion_EMBED_GASNet_CONFIGURE_ARGS=--with-ibv-max-hcas=8 -DCPM_Legion_SOURCE=/Users/mpapadakis/legion

    Not searching for unused variables given on the command line.
    -- The C compiler identification is AppleClang 14.0.3.14030022
    -- The CXX compiler identification is AppleClang 14.0.3.14030022
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- legate.core: Legion_SPY=OFF
    -- legate.core: Legion_USE_LLVM=OFF
    -- legate.core: Legion_USE_CUDA=OFF
    -- legate.core: Legion_USE_HDF5=OFF
    -- legate.core: Legion_NETWORKS=
    -- legate.core: Legion_USE_OpenMP=OFF
    -- legate.core: Legion_BOUNDS_CHECKS=OFF
    -- legate.core: Legion_MAX_DIM=4
    -- legate.core: Legion_MAX_FIELDS=256
    -- legate.core: not setting NCCL_DIR
    -- legate.core: not setting Thrust_DIR
    -- legate.core: not setting CUDA_TOOLKIT_ROOT_DIR
    -- legate.core: CMAKE_CUDA_ARCHITECTURES=NATIVE
    -- legate.core: Legion_HIJACK_CUDART=OFF (from default value)
    -- Conda environment detected, CMAKE_PREFIX_PATH set to: /Users/mpapadakis/opt/miniconda3/envs/legate
    -- Found Git: /Users/mpapadakis/opt/miniconda3/envs/legate/bin/git (found version "2.40.1")
    -- Downloading CPM.cmake to /Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build/cmake/CPM_0.35.6.cmake
    -- Found Python3: /Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 (found version "3.9.16") found components: Interpreter Development Development.Module Development.Embed
    -- legate.core: Has Python3: TRUE
    -- legate.core: Has Python 3 interpreter: TRUE
    -- legate.core: Python 3 include directories: /Users/mpapadakis/opt/miniconda3/envs/legate/include/python3.9
    -- legate.core: Python 3 libraries: /Users/mpapadakis/opt/miniconda3/envs/legate/lib/libpython3.9.dylib
    -- legate.core: Python 3 library directories: /Users/mpapadakis/opt/miniconda3/envs/legate/lib
    -- legate.core: Python 3 version: 3.9.16
    -- legate.core: Legion version: 23.3.0
    -- legate.core: Legion git_repo: https://gitlab.com/StanfordLegion/legion.git
    -- legate.core: Legion git_branch: 9ac3fa98b8818c92db8adca3e9deed5e88474265
    -- legate.core: Legion exclude_from_all: OFF
    -- CPM: adding package Legion@ (/Users/mpapadakis/legion)
    -- Performing Test COMPILER_SUPPORTS_MARCH
    -- Performing Test COMPILER_SUPPORTS_MARCH - Success
    -- Performing Test COMPILER_SUPPORTS_MALTIVEC
    -- Performing Test COMPILER_SUPPORTS_MALTIVEC - Failed
    -- Performing Test COMPILER_SUPPORTS_MABI_ALTIVEC
    -- Performing Test COMPILER_SUPPORTS_MABI_ALTIVEC - Success
    -- Performing Test COMPILER_SUPPORTS_MVSX
    -- Performing Test COMPILER_SUPPORTS_MVSX - Failed
    -- Performing Test COMPILER_SUPPORTS_DEFCHECK
    -- Performing Test COMPILER_SUPPORTS_DEFCHECK - Failed
    -- Found PythonInterp: /Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 (found suitable version "3.9.16", minimum required is "3.9.16")
    -- Found PythonLibs: /Users/mpapadakis/opt/miniconda3/envs/legate/lib/libpython3.9.dylib (found suitable version "3.9.16", minimum required is "3.9.16")
    -- Found ZLIB: /Users/mpapadakis/opt/miniconda3/envs/legate/lib/libz.dylib (found version "1.2.13")
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
    -- Found Threads: TRUE
    -- Performing Test COMPILER_SUPORTS_OVERLOADED_VIRTUAL_WARNING
    -- Performing Test COMPILER_SUPORTS_OVERLOADED_VIRTUAL_WARNING - Success
    -- Rust Target: x86_64-apple-darwin
    -- Found Rust: /Users/mpapadakis/opt/miniconda3/envs/legate/bin/rustc (found version "1.69.0")
    -- Using Corrosion as a subdirectory
    -- Parsed Target triple: arch: x86_64, vendor: apple, OS: darwin, env:
    -- Found 2 targets in package legion_prof
    -- CORROSION_LINKER_PREFERENCE for target legion_prof: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
    -- TARGET legion_prof produces byproducts legion_prof;
    -- Corrosion created the following CMake targets: legion_prof
    -- Output directory property (target legion_prof): RUNTIME_OUTPUT_DIRECTORY dir: /Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build/_deps/legion-build/bin
    -- Setting IMPORTED_LOCATION for target legion_prof to `/Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build/_deps/legion-build/bin/legion_prof`.
    -- Adding command to copy byproducts `legion_prof` to /Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build/_deps/legion-build/bin/legion_prof
    -- Legion_USE_CUDA=OFF
    -- Legion_USE_OpenMP=OFF
    -- Legion_USE_Python=ON
    -- Legion_NETWORKS=
    -- CPM: adding package [email protected] (1.17.0)
    CMake Deprecation Warning at _skbuild/macosx-13.0-x86_64-3.9/cmake-build/_deps/thrust-src/CMakeLists.txt:9 (cmake_policy):
      The OLD behavior for policy CMP0104 will be removed from a future version
      of CMake.

      The cmake-policies(7) manual explains that the OLD behaviors of all
      policies are deprecated and that a policy should be set to OLD only under
      specific short-term circumstances.  Projects should be ported to the NEW
      behavior and not rely on setting a policy to OLD.


    -- Thrust: TargetInfo: Thrust::Thrust: (1.17.0.0)
    -- Thrust: TargetInfo: Thrust::Thrust > ALIASED_TARGET: _Thrust_Thrust
    -- Thrust: TargetInfo: Thrust::Thrust > INTERFACE_INCLUDE_DIRECTORIES: /Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build/_deps/thrust-src
    -- Found Thrust: /Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build/_deps/thrust-src/thrust/cmake/thrust-config.cmake (found version "1.17.0.0")
    -- rapids-cmake [Thrust]: applied diff transform_iter_with_reduce_by_key.diff to fix issue: 'Support transform iterator with reduce by key [https://github.com/NVIDIA/thrust/pull/1805]'
    -- rapids-cmake [Thrust]: applied diff install_rules.diff to fix issue: 'Thrust 1.X installs incorrect files [https://github.com/NVIDIA/thrust/issues/1790]'
    -- Thrust: Assembling target legate::Thrust. Options: FROM_OPTIONS
    -- Thrust: Creating system cache options: (advanced=FALSE)
    -- Thrust:   - Host Option=THRUST_HOST_SYSTEM Default=CPP Doc='Thrust host system.'
    -- Thrust:   - Device Option=THRUST_DEVICE_SYSTEM Default=CUDA Doc='Thrust device system.'
    -- Thrust: Current option settings:
    -- Thrust:   - THRUST_HOST_SYSTEM=CPP
    -- Thrust:   - THRUST_DEVICE_SYSTEM=CUDA
    -- Thrust: Generating CPP targets.
    -- Thrust: TargetInfo: Thrust::CPP: (Thrust 1.17.0.0)
    -- Thrust: TargetInfo: Thrust::CPP > ALIASED_TARGET: _Thrust_CPP
    -- Thrust: TargetInfo: Thrust::CPP > INTERFACE_LINK_LIBRARIES: Thrust::Thrust
    -- Thrust: TargetInfo: Thrust::CPP::Host:
    -- Thrust: TargetInfo: Thrust::CPP::Host > ALIASED_TARGET: _Thrust_CPP_Host
    -- Thrust: TargetInfo: Thrust::CPP::Host > INTERFACE_COMPILE_DEFINITIONS: THRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP
    -- Thrust: TargetInfo: Thrust::CPP::Host > INTERFACE_LINK_LIBRARIES: Thrust::CPP
    -- Thrust: TargetInfo: Thrust::CPP::Host > INTERFACE_THRUST_HOST: CPP
    -- Thrust: TargetInfo: Thrust::CPP::Device:
    -- Thrust: TargetInfo: Thrust::CPP::Device > ALIASED_TARGET: _Thrust_CPP_Device
    -- Thrust: TargetInfo: Thrust::CPP::Device > INTERFACE_COMPILE_DEFINITIONS: THRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CPP
    -- Thrust: TargetInfo: Thrust::CPP::Device > INTERFACE_LINK_LIBRARIES: Thrust::CPP
    -- Thrust: TargetInfo: Thrust::CPP::Device > INTERFACE_THRUST_DEVICE: CPP
    -- Thrust: Searching for CUB REQUIRED
    -- Found CUB: /Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build/_deps/thrust-src/dependencies/cub/cub/cmake/cub-config.cmake (found suitable version "1.17.0.0", minimum required is "1.17.0.0")
    -- Thrust: Setting CUB target to CUB::CUB
    -- Thrust: TargetInfo: CUB::CUB: (1.17.0.0)
    -- Thrust: TargetInfo: CUB::CUB > ALIASED_TARGET: _CUB_CUB
    -- Thrust: TargetInfo: CUB::CUB > INTERFACE_INCLUDE_DIRECTORIES: /Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build/_deps/thrust-src/dependencies/cub
    -- Thrust: TargetInfo: Thrust::CUDA: (CUB 1.17.0.0)
    -- Thrust: TargetInfo: Thrust::CUDA > ALIASED_TARGET: _Thrust_CUDA
    -- Thrust: TargetInfo: Thrust::CUDA > INTERFACE_LINK_LIBRARIES: Thrust::Thrust;CUB::CUB
    -- Thrust: TargetInfo: Thrust::CUDA::Device:
    -- Thrust: TargetInfo: Thrust::CUDA::Device > ALIASED_TARGET: _Thrust_CUDA_Device
    -- Thrust: TargetInfo: Thrust::CUDA::Device > INTERFACE_COMPILE_DEFINITIONS: THRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_CUDA
    -- Thrust: TargetInfo: Thrust::CUDA::Device > INTERFACE_LINK_LIBRARIES: Thrust::CUDA
    -- Thrust: TargetInfo: Thrust::CUDA::Device > INTERFACE_THRUST_DEVICE: CUDA
    -- Thrust: TargetInfo: legate::Thrust: (Thrust 1.17.0.0)
    -- Thrust: TargetInfo: legate::Thrust > IMPORTED: TRUE
    -- Thrust: TargetInfo: legate::Thrust > INTERFACE_LINK_LIBRARIES: Thrust::CPP::Host;Thrust::CUDA::Device
    CMake Error at legate_core_cpp.cmake:467 (file):
      file failed to open for reading (No such file or directory):

        /Users/mpapadakis/legate.core/cmake/tmpl/cpp_source_template
    Call Stack (most recent call first):
      CMakeLists.txt:91 (include)


    CMake Error at legate_core_cpp.cmake:468 (file):
      file failed to open for reading (No such file or directory):

        /Users/mpapadakis/legate.core/cmake/tmpl/cpp_header_template
    Call Stack (most recent call first):
      CMakeLists.txt:91 (include)


    CMake Error at legate_core_cpp.cmake:469 (file):
      file failed to open for reading (No such file or directory):

        /Users/mpapadakis/legate.core/cmake/tmpl/python_template
    Call Stack (most recent call first):
      CMakeLists.txt:91 (include)


    CMake Warning at _skbuild/macosx-13.0-x86_64-3.9/cmake-build/cmake/CPM_0.35.6.cmake:310 (message):
      CPM: requires a newer version of Legion (23.3.0) than currently included
      ().
    Call Stack (most recent call first):
      _skbuild/macosx-13.0-x86_64-3.9/cmake-build/cmake/CPM_0.35.6.cmake:290 (cpm_check_if_package_already_added)
      build/legate_core-dependencies.cmake:145 (CPMFindPackage)
      build/legate_core-config.cmake:72 (include)
      tests/integration/registry/CMakeLists.txt:24 (find_package)


    -- Found legate_core: /Users/mpapadakis/legate.core/build/legate_core-config.cmake (found version "23.03.0")
    -- Found PythonInterp: /Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 (found version "3.9.16")
    -- Found PythonLibs: /Users/mpapadakis/opt/miniconda3/envs/legate/lib/libpython3.9.dylib (found version "3.9.16")
    -- Found Cython: /Users/mpapadakis/opt/miniconda3/envs/legate/bin/cython
    -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Failed
    -- Performing Test Weak Link MODULE -> SHARED (osx_dynamic_lookup) - Success
    _modinit_prefix:PyInit_
    _modinit_prefix:PyInit_
    -- Configuring incomplete, errors occurred!
    Traceback (most recent call last):
      File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 666, in setup
        env = cmkr.configure(
      File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/skbuild/cmaker.py", line 357, in configure
        raise SKBuildError(msg)

    An error occurred while configuring with CMake.
      Command:
        /Users/mpapadakis/opt/miniconda3/envs/legate/bin/cmake /Users/mpapadakis/legate.core -G Ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-install -DPYTHON_VERSION_STRING:STRING=3.9.16 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/include/python3.9 -DPYTHON_LIBRARY:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/lib/libpython3.9.dylib -DPython_EXECUTABLE:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 -DPython_ROOT_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/include/python3.9 -DPython_NumPy_INCLUDE_DIRS:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 -DPython3_ROOT_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/include/python3.9 -DPython3_NumPy_INCLUDE_DIRS:PATH=/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/numpy/core/include --log-level=DEBUG -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DBUILD_MARCH=haswell -DCMAKE_CUDA_ARCHITECTURES=NATIVE -DLegion_MAX_DIM=4 -DLegion_MAX_FIELDS=256 -DLegion_SPY=OFF -DLegion_BOUNDS_CHECKS=OFF -DLegion_USE_CUDA=OFF -DLegion_USE_OpenMP=OFF -DLegion_USE_LLVM=OFF -DLegion_NETWORKS= -DLegion_USE_HDF5=OFF -DLegion_USE_Python=ON -DLegion_Python_Version=3.9.16 -DLegion_REDOP_COMPLEX=ON -DLegion_REDOP_HALF=ON -DLegion_BUILD_BINDINGS=ON -DLegion_BUILD_JUPYTER=ON '-DLegion_EMBED_GASNet_CONFIGURE_ARGS="--with-ibv-max-hcas=8"' -DCPM_Legion_SOURCE=/Users/mpapadakis/legion -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=13.0 -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64 --log-level=DEBUG -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DBUILD_MARCH=haswell -DCMAKE_CUDA_ARCHITECTURES=NATIVE -DLegion_MAX_DIM=4 -DLegion_MAX_FIELDS=256 -DLegion_SPY=OFF -DLegion_BOUNDS_CHECKS=OFF -DLegion_USE_CUDA=OFF -DLegion_USE_OpenMP=OFF -DLegion_USE_LLVM=OFF -DLegion_NETWORKS= -DLegion_USE_HDF5=OFF -DLegion_USE_Python=ON -DLegion_Python_Version=3.9.16 -DLegion_REDOP_COMPLEX=ON -DLegion_REDOP_HALF=ON -DLegion_BUILD_BINDINGS=ON -DLegion_BUILD_JUPYTER=ON -DLegion_EMBED_GASNet_CONFIGURE_ARGS=--with-ibv-max-hcas=8 -DCPM_Legion_SOURCE=/Users/mpapadakis/legion
      Source directory:
        /Users/mpapadakis/legate.core
      Working directory:
        /Users/mpapadakis/legate.core/_skbuild/macosx-13.0-x86_64-3.9/cmake-build
    Please see CMake's output for more information.

    error: subprocess-exited-with-error

    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip.
    full command: /Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3 -c '
    exec(compile('"'"''"'"''"'"'
    # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
    #
    # - It imports setuptools before invoking setup.py, to enable projects that directly
    #   import from `distutils.core` to work with newer packaging standards.
    # - It provides a clear error message when setuptools is not installed.
    # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
    #   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
    #     manifest_maker: standard file '"'"'-c'"'"' not found".
    # - It generates a shim setup.py, for handling setup.cfg-only projects.
    import os, sys, tokenize

    try:
        import setuptools
    except ImportError as error:
        print(
            "ERROR: Can not execute `setup.py` since setuptools is not available in "
            "the build environment.",
            file=sys.stderr,
        )
        sys.exit(1)

    __file__ = %r
    sys.argv[0] = __file__

    if os.path.exists(__file__):
        filename = __file__
        with tokenize.open(__file__) as f:
            setup_py_code = f.read()
    else:
        filename = "<auto-generated setuptools caller>"
        setup_py_code = "from setuptools import setup; setup()"

    exec(compile(setup_py_code, filename, "exec"))
    '"'"''"'"''"'"' % ('"'"'/Users/mpapadakis/legate.core/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps --prefix /Users/mpapadakis/opt/miniconda3/envs/legate
    cwd: /Users/mpapadakis/legate.core/
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Exception information:
Traceback (most recent call last):
  File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 169, in exc_logging_wrapper
    status = run_func(*args)
  File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
    return func(self, options, args)
  File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 449, in run
    installed = install_given_reqs(
  File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/pip/_internal/req/__init__.py", line 72, in install_given_reqs
    requirement.install(
  File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 783, in install
    install_editable_legacy(
  File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/pip/_internal/operations/install/editable_legacy.py", line 42, in install_editable
    call_subprocess(
  File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/site-packages/pip/_internal/utils/subprocess.py", line 224, in call_subprocess
    raise error
pip._internal.exceptions.InstallationSubprocessError: python setup.py develop exited with 1
Remote version of pip: 23.1.2
Local version of pip:  23.1.2
Was pip installed by pip? False
Removed build tracker: '/private/var/folders/rj/zq33_cdx56d7rl014560nnyh0000gp/T/pip-build-tracker-3q0igvb0'
Traceback (most recent call last):
  File "/Users/mpapadakis/legate.core/./install.py", line 795, in <module>
    driver()
  File "/Users/mpapadakis/legate.core/./install.py", line 791, in driver
    install(unknown=unknown, **vars(args))
  File "/Users/mpapadakis/legate.core/./install.py", line 492, in install
    execute_command(pip_install_cmd, verbose, cwd=legate_core_dir, env=cmd_env)
  File "/Users/mpapadakis/legate.core/./install.py", line 74, in execute_command
    subprocess.check_call(args, **kwargs)
  File "/Users/mpapadakis/opt/miniconda3/envs/legate/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/mpapadakis/opt/miniconda3/envs/legate/bin/python3', '-m', 'pip', 'install', '--root', '/', '--prefix', '/Users/mpapadakis/opt/miniconda3/envs/legate', '--no-deps', '--no-build-isolation', '--editable', '.', '-vv']' returned non-zero exit status 1.

@jjwilke
Copy link
Author

jjwilke commented Jun 5, 2023

Okay... moar fixes. Roll again.

@manopapad
Copy link
Contributor

Works for me!

@marcinz marcinz changed the base branch from branch-23.07 to branch-23.09 July 18, 2023 15:38
@marcinz marcinz changed the base branch from branch-23.09 to branch-23.11 September 26, 2023 00:23
@marcinz marcinz changed the base branch from branch-23.11 to branch-24.01 November 9, 2023 16:52
@marcinz marcinz changed the base branch from branch-24.01 to branch-24.03 February 22, 2024 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:improvement PR introduces an improvement and will be classified as such in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants